package com.bms.hystrix.interfaces.kyjlgl;

import com.bms.hystrix.pojo.ChuFangGuanLiZhengJia;
import com.bms.hystrix.pojo.DuiWaiXinXiJiaoLiuChanXun;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;
// 调用一个子服务模块，需要在注解中指定，名字由client的yml文件定义
@FeignClient(value = "EUREKA-CLIENT-KYJLGL")
public interface DuiWaiXinXiJiaoLiuInterface {
    @RequestMapping(value = "/duiWaiXinXiJiaoLiu/chaXunFenYe",method = RequestMethod.POST,
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    Map<String, Object> chaXunFenYe(@RequestParam(value = "DuiWaiXinXiJiaoLiuChanXun") DuiWaiXinXiJiaoLiuChanXun duiWaiXinXiJiaoLiuChanXun);
}
